class Animal:
    name = 'animal'

    def shout(self):
        print('animal shout')


animal = Animal()
print(animal.name)
animal.shout()


class Dog(Animal):
    name = 'dog'

    def eat(self):
        print('dog eat')


dog1 = Dog()
print(dog1.name)
print(Dog.name)

Dog.name = 'ddd1'
print(dog1.name)
print(Dog.name)

Dog.name = '__ddd1'
print(dog1.name)
print(Dog.name)
print('_____________________________')


dog2 = Dog()
print(dog2.name)
print(dog2.age)

class Cat:
    def __init__(self,name,age):
        self.name='cat'

    def miao(self):
        print('miao~~~~~~~')